<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>最新教师岗位New!</title>
</head>
<body>
    <p style="color: #f46660;">最新教师岗位！</p>

        <h2>今日职位</h2>
    @if(!empty($today))
        <ul>
            @foreach($today as $job)
                <li>{{ $job['date'] }} ---- <a href="{{ $job['link'] }}">{{ $job['text'] }}</a></li>
            @endforeach
        </ul>
    @else
        <p>暂无</p>
    @endif

        <h2>往日职位：</h2>
    @if(!empty($ago))
        <ul>
            @foreach($ago as $job)
                <li @if($job['date'] == date('Ymd'))style="background: #FFF1B4"@endif>
                    {{ $job['date'] }} ---- <a href="{{ $job['link'] }}">{{ $job['text'] }}</a>
                </li>
            @endforeach
        </ul>
    @else
        <p>暂无</p>
    @endif
</body>
</html>